<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head>
    <meta charset="utf-8">
    <title>代理商列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"   content= "no-cache" /> 
    <meta http-equiv= "Cache-Control"   content= "no-cache" /> 
    <meta http-equiv= "Expires"   content= "0" />

    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/layui/style/admin.css" media="all" />
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">

    <div class="layui-form-item queryTable">
        <div class="layui-input-inline">
            <input name="userName" type="text" value="" placeholder="输入用户名" autocomplete="off" class="layui-input search_input">
        </div>

        <div class="layui-input-inline">
            <input name="mobile" type="text" value="" placeholder="输入手机号码" autocomplete="off" class="layui-input search_input">
        </div>
        <div class="layui-input-inline" style="width: unset;">
            <a class="layui-btn search_btn " >查询</a>
        </div>
        <div class="layui-input-inline">
            <a class="layui-btn agencyUserAdd_btn" style="background-color:#5FB878">添加代理商</a>
        </div>
    </div>



</blockquote>
<table class="layui-hide" id="agency_agencyUser_table" lay-filter="agency_agencyUser_table"></table>
<div id="add_agencyUser_win" style="display: none;">
    <form id="add_agencyUser_form" class="layui-form level_form" οnsubmit="return false" action="" lay-filter="add_agencyUser_form">
        <input type="hidden" name="id" value="" />
        <div class="layui-form-item">
            <label class="layui-form-label">登录用户</label>
            <div class="layui-input-block">
                <input type="text" name="userName" required  lay-verify="required" value="" placeholder="请输入登录用户名" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" name="mobile" required  lay-verify="required|phone" value="" placeholder="请输入手机号码" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">等级</label>
            <div class="layui-input-block">
                <select type="text" name="levelId"      autocomplete="off" class="layui-input">
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="addagencyUserOk">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>



<div id="add_quota_win" style="display: none;">
    <form id="add_quota_form" class="layui-form level_form" action="" lay-filter="add_quota_form">
        <input type="hidden" name="applyUserId" />
        <div class="layui-form-item">
            <label class="layui-form-label">登录用户</label>
            <div class="layui-input-block">
                <input type="text" name="userName" required  lay-verify="required" value="" placeholder="请输入登录用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">等级</label>
            <div class="layui-input-block">
                <select  name="levelId"  required  lay-verify="required"   autocomplete="off" class="layui-input">
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">数量</label>
            <div class="layui-input-block">
                <input type="text" name="quantity" required  lay-verify="required" value="" placeholder="名额数量" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="addQuotaOk">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script src="/js/agency/agencyUserList.js"></script>

<script type="text/html" id="OptData">
    <a  class="layui-btn layui-btn-xs"  lay-event="modify_agencyUser">编辑</a>
    <a  sec:authorize="hasRole('OEM_MANAGER')"  class="layui-btn layui-btn-xs"  lay-event="add_quota">添加名额</a>
</script>

</body>
</html>